package com.wnd.dell.myapplication;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

import in.srain.cube.views.ptr.PtrFrameLayout;
import in.srain.cube.views.ptr.PtrUIHandler;
import in.srain.cube.views.ptr.indicator.PtrIndicator;

/**
 * Created by Dell on 2017/7/7.
 */



public class RefreshHeadView extends LinearLayout implements PtrUIHandler {


    private TextView textView;
    public RefreshHeadView(Context context) {
        super(context);
        textView =new TextView(context);
        textView.setText("下拉刷新");
        addView(textView);

    }

    @Override
    public void onUIReset(PtrFrameLayout frame) {

    }

    @Override
    public void onUIRefreshPrepare(PtrFrameLayout frame) {

    }

    @Override
    public void onUIRefreshBegin(PtrFrameLayout frame) {

    }

    @Override
    public void onUIRefreshComplete(PtrFrameLayout frame, boolean isHeader) {

    }


    @Override
    public void onUIPositionChange(PtrFrameLayout frame, boolean isUnderTouch, byte status, PtrIndicator ptrIndicator) {


    }
}
